<?php
namespace app\admin\validate;

class LoginValidate extends BaseValidate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
	protected $rule = [
        'username' => 'require',
        'password' => 'require|min:6',
        'captcha' => 'require',
    ];

    protected $message  =   [
        'username.require' => '用户名不能为空',
        'password.require' => '密码不能为空',
        'password.min' => '密码不能小于6位数',
        'captcha.require' => '验证码不能为空'
    ];
    
}